﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FurnitureDesign.Core.Models
{
   public class Designer
    {
        [Key]
        public int Id { get; set; }

        [Display(Name = "设计师姓名")]
        [Required(ErrorMessage = "设计师姓名不能为空")]
        public string DesignerName { get; set; }

        [Display(Name = "设计师性别")]
        [Required(ErrorMessage = "设计师性别不能为空")]
        public string Sex { get; set; }

        [Display(Name = "设计师年龄")]
        [Required(ErrorMessage = "设计师年龄不能为空")]
        public int Age { get; set; }

        [Display(Name = "设计师段位")]
        [Required(ErrorMessage = "设计师段位不能为空")]
        public string Segment { get; set; }
    }
}
